
import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { systemid } from '../../atom/config';


// tslint:disable-next-line:no-empty-interface
interface Message {
	// cookie: {
	// 	uk: string;
	// 	[key: string]: string
	// };
	// urls: {
	// 	base: string;
	// 	origin: string;
	// 	url: string;
	// };
	// query: {};
	// params: {};
	// headers: {};
	// captcha: string;
}
// 1. 查<试题库> question_bank 表取字段：

// "试题编号/question_no"、==对应"试题编号"、

// "题目/topic"、==对应"题目名称"、

// "题目类型/topic_type"、==对应"题目类型"、

// "题库类型/question_bank_type"、==对应"题库类型"、

export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {

	const pre = query(action_id, session_id, systemid);
	pre.prepare('question_bank',['question_bank_type'],{},20,1,[],[]);
	pre.prepare('question_bank',['topic_type'],{},20,1,[],[]);
	const [dt,dt1]= await pre.exec();
	return {dt,dt1};

}
